require "pingpp"


Pingpp.api_key = "sk_test_r5iTS050CefTH4u9WLTG4aDK"

Pingpp.api_key = "sk_live_nDaHCSW50qPG5q1Om95KaLqT"

path = File.dirname(__FILE__)

root_dir = Rails.root.to_s

private_key_path = root_dir + "/cert/rsa_private_key.pem"
is_exist = File.exist?(private_key_path)

pub_key_path = root_dir + "/cert/rsa_public_key.pem"

# debugger

# Pingpp.private_key_path = File.dirname(__FILE__) + '../../cert/rsa_private_key.pem'
Pingpp.private_key_path = private_key_path

# 文档提示，公钥放在ping＋＋配置也有可能
# Pingpp.pub_key_path = pub_key_path

